www.gusucode.com > matlab从零到进阶程序与数据 > matlab从零到进阶程序与数据/第21章 MATLAB程序编译/ex21_2_1.m

    %例21.2-1
mbuild -setup

% Please choose your compiler for building standalone MATLAB applications: 
%  
% Would you like mbuild to locate installed compilers [y]/n? y
%  
% Select a compiler: 
% [1] Lcc-win32 C 2.4.1 in D:\PROGRA~1\MATLAB\R2008b\sys\lcc 
% [2] Microsoft Visual C++ 2005 in D:\Program Files\Microsoft Visual Studio 8 
%  
% [0] None 
%  
% Compiler: Microsoft Visual C++ 2005 in D:\Program Files\Microsoft Visual Studio 8
% Please select from 0-2 
% Compiler: 2
%  
% Please verify your choices: 
%  
% Compiler: Microsoft Visual C++ 2005  
% Location: D:\Program Files\Microsoft Visual Studio 8 
%  
% Are these correct [y]/n? y
%  
% Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2008b\compopts.bat 
% From template:              D:\PROGRA~1\MATLAB\R2008b\bin\win32\mbuildopts\msvc80compp.bat 
%  
% Done . . .